package top.ewind.controller.common;

import com.jfinal.aop.Before;
import com.jfinal.core.AuthorAnnoInterceptor;
import com.jfinal.core.Controller;
import com.jfinal.ext.interceptor.SessionInViewInterceptor;
import com.jfinal.plugin.activerecord.Record;

@Before({SessionInViewInterceptor.class,AuthorAnnoInterceptor.class})
public class AdminRootCtrl extends Controller{
	public Record injectParas(Record record,String... paras){
		for (int i=0; i<paras.length; i++) {
			record.set(paras[i], getPara(paras[i]));
		}
		return record;
	}
}
